import TCPClass
import Ser


if __name__ == "__main__":
    ser = Ser.Ser()
    ser.openPort('com1')
    tcp = TCPClass.TCPClass()
    tcp.start()

    while 1:
        ser.sendData(tcp.recvData()['data'])
        tcp.sendData(200, ser.recvData())


